﻿using Magicodes.ExporterAndImporter.Core;
using Magicodes.ExporterAndImporter.Excel;
namespace EMC.VISITOR.Core;

    /// <summary>
    /// 意见反馈输出参数
    /// </summary>
    public class SysFeedbackDto
    {
        /// <summary>
        /// Id
        /// </summary>
        public long Id { get; set; }
        
        /// <summary>
        /// 反馈类型
        /// </summary>
        public FeedbackType? Type { get; set; }
        
        /// <summary>
        /// 反馈内容
        /// </summary>
        public string Description { get; set; }
        
        /// <summary>
        /// 更新时间
        /// </summary>
        public DateTime? UpdateTime { get; set; }
        
    }

    
  /// <summary>
    /// 意见反馈导出导入
    /// </summary>
    [ExcelExporter(Name = "意见反馈", TableStyle = OfficeOpenXml.Table.TableStyles.None, AutoFitAllColumn = true,AutoCenter =true)]
    [ExcelImporter( IsLabelingError = true,SheetName ="意见反馈")]
    public class ExportImportSysFeedbackDto
    {
        /// <summary>
        /// 反馈类型
        /// </summary>
         [ExporterHeader(DisplayName = "反馈类型", IsBold = true)]
        [ImporterHeader(Name = "反馈类型")]
        public FeedbackType? Type { get; set; }
        
        /// <summary>
        /// 反馈内容
        /// </summary>
        [ExporterHeader(DisplayName = "反馈内容", IsBold = true)]
        [ImporterHeader(Name = "反馈内容")]
        public string? Description { get; set; }

    /// <summary>
    /// 更新时间
    /// </summary>
    [ExporterHeader(DisplayName = "创建时间", IsBold = true)]
    [ImporterHeader(Name = "创建时间")]
    public DateTime? CreateTime { get; set; }
    /// <summary>
    /// 更新时间
    /// </summary>
    [ExporterHeader(DisplayName = "更新时间", IsBold = true)]
        [ImporterHeader(Name = "更新时间")]
        public DateTime? UpdateTime { get; set; }
        
    }